<html>
    <head>
        <meta charset="utf-8">
		 <!--要求页面自动适应浏览器的屏幕-->  
    <meta name="viewport"  
        content="width=device-width,initial-scale=1.0,user-scalable=no"> 
        <link href="__CSS__bootstrap.min.css" type="text/css" rel="stylesheet">
        <link href="__CSS__index.css" type="text/css" rel="stylesheet">
        <script src="__JS__jquery-3.1.1.min.js"></script>
        <script src="__JS__bootstrap.min.js"></script>
    </head>
    <body>
 <!--导航栏-->
        <div class="navbar navbar-default" style="margin-bottom: 2px;">
            <div class="container-fluid">
                <div class="navbar-header">
                    <div class="navbar-brand">
                        <a href="__HOME__Index/index" style="text-decoration:none;">
                            <small class="glyphicon glyphicon-grain"></small>
                            梧桐下的四叶草
                        </a>
                    </div>
                </div>
                 <ul class="nav navbar-nav navbar-right ">
                     
                     <if condition="$Think.session.username neq null">
                         <div class="collapse navbar-collapse" >
                             <ul class="nav navbar-nav">
                                 <li role="presentation" class="dropdown">
                                     <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                                         {$Think.session.username} <span class="caret"></span>
                                     </a>
                                     <ul class="dropdown-menu">
                                         <li><a href="__ADMIN__Index/welcome">博客管理</a></li>
                                         <li><a href="__HOME__Login/logout">登出</a></li>
                                     </ul>
                                 </li>
                             </ul>
                         </div>

                         <else />
                         <li><a href="__HOME__Login/rigster">注册</a></li>
                            <li><a href="__HOME__Login/login">登录</a></li>
                     </if>
                </ul>
            </div>
        </div>
    </body>
</html>